import request from '@/router/axios';

//获取社交统计数据 -
export const getSocialStatic = (ruleName) => {
  return request({
    url: `/api/blade-social/socialFeed/count/?ruleName=${ruleName}`,
    method: 'get',
  })
}
//获取社交echart数据 - 详情
export const getSocialEchart = (year,ruleName) => {
  return request({
    url: '/api/blade-social/socialFeed/month/count',
    method: 'get',
    params:{year:year,ruleName:ruleName}
  })
}
//获取表格数据 -  - 分页
export const getSocialList = (data) => {
  return request({
    url: '/api/blade-social/socialFeed/rules',
    method: 'get',
    params:data
  })
}
//获取详情
export const getSocialStaticDetail = (ruleId) => {
  return request({
    url: `/api/blade-social/socialFeed/rule/${ruleId}`,
    method: 'get',
  })
}
//获取点赞
export const  getSocialComment= (row) => {
  return request({
    url: `/api/blade-social/socialFeed/rule/${row.ruleId}/account/feed/comments`,
    method: 'get',
    params:row
  })
}
//获取评论
export const getSocialLike = (row) => {
  return request({
    url: `/api/blade-social/socialFeed/rule/${row.ruleId}/account/likes`,
    method: 'get',
    params:row
  })
}
